<template>
  <div>
    <button class="" @click="getInfo">点我</button>
  </div>
</template>

<script>
  export default {
    name: "home",
    methods: {
      getInfo() {
        this.$get('api/user', {}, '请求错误').then(
          res => {
            console.log(res.data);
          }
        )
      }
    }
  }
</script>

<style scoped>

</style>
